The ConfirmButtonExtender check the confirmation of end user action. The main key properties of extender are: TargetControlID, ConfirnText, and DisplayModalPopupID.
How we implement the ConfirmButtonExtender
Step1: we use the following control on aspx page
Example:
<formid="form1"runat="server">
<div>
<%--Using ScriptManager or ToolkitScriptManager according toolkit version--%>
<asp:ScriptManagerID="ScriptManager1"runat="server"></asp:ScriptManager>
<%-- using ConfirmButtonExtender here--%>
<cc1:ConfirmButtonExtenderID="ConfirmButtonExtender1"runat="server"
ConfirmText="are you sure submit the page?"TargetControlID="Button1">
</cc1:ConfirmButtonExtender>
<%--Add button for submit the page--%>
<asp:ButtonID="Button1"runat="server"Text="Submit Page"/>
</div>
</form>
Step3: Run the project
Click on submit button
Sushant Mishra
22-Jun-2017I always seek to read your articles.